package com.liurong.quartz.util.entity;

/**
 * 定时任务的相关实体
 * 
 * @author liurong
 *
 */
public class JobEntity {
	private String jobName;

	/**
	 * 是否启动：0:未启动，1:启动成功
	 */
	private Integer isStart;

	/**
	 * cron表达式
	 */
	private String cronStr;

	/**
	 * 是否支持手动执行
	 */
	private boolean isHandStart;

	private boolean isDistribute;

	private String ipStr;

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public Integer getIsStart() {
		return isStart;
	}

	public void setIsStart(Integer isStart) {
		this.isStart = isStart;
	}

	public String getCronStr() {
		return cronStr;
	}

	public void setCronStr(String cronStr) {
		this.cronStr = cronStr;
	}

	public boolean isHandStart() {
		return isHandStart;
	}

	public void setHandStart(boolean isHandStart) {
		this.isHandStart = isHandStart;
	}

	public String getIpStr() {
		return ipStr;
	}

	public void setIpStr(String ipStr) {
		this.ipStr = ipStr;
	}

	public boolean isDistribute() {
		return isDistribute;
	}

	public void setDistribute(boolean isDistribute) {
		this.isDistribute = isDistribute;
	}

	@Override
	public String toString() {
		return "JobEntity [isStart=" + isStart + ", cronStr=" + cronStr + ", isHandStart=" + isHandStart
				+ ", isDistribute=" + isDistribute + ", ipStr=" + ipStr + "]";
	}

}
